package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.entity.Dish;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface DishMapper extends BaseMapper<Dish> {
/*    @Options(useGeneratedKeys = true, keyProperty = "userId", keyColumn = "user_id")
    @Insert("insert into dish (name,price,code,image,description,status,category_id) value (#{name} ,#{price} ,#{code} ,#{image},#{description} ,#{status} ,#{categoryId} )")
    Integer add(Dish dish);*/
}